<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<form class="form-horizontal" id="signupForm">
						<input id="cid" name="cid" type="hidden"
							   th:value="${bContent.cid}">
						<div class="col-lg-9 article">
							<div class="form-group">
								<label class="col-sm-1 control-label">标题：</label>
								<div class="col-sm-8">
									<input id="title" name="title" class="form-control" type="text"
										   th:value="${bContent.title}">
								</div>
								<label class="col-sm-1 control-label">作者：</label>
								<div class="col-sm-2">
									<input id="author" name="author" class="form-control"
										   type="text" th:value="${bContent.author}" readonly>
								</div>
							</div>
							<div class="form-group">
								<input id="content" name="content" type="hidden"
									   th:value="${bContent.content}">
								<div class="col-sm-12">
									<div class="ibox-content no-padding">
										<div id="content_sn" class="summernote"></div>
									</div>
								</div>
							</div>
						</div>
						<div class="col-lg-3 article">
							<div class="form-group">
								<input th:value="${bContent.categories}" id="categoriesValues" type="hidden">
								<label class="col-sm-4 control-label">文章分类：</label>
								<div class="col-sm-8">
									<select data-placeholder="选择类别" class="form-control chosen-select"
											tabindex="2" style="width: 100%" id="categories" name="categories">
										<option value="">选择类型</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">文章类型：</label>
								<div class="col-sm-8">
									<div class="radio col-sm-4">
										<input type="radio" name="type" value="0" th:checked="${bContent.type==0}"
											   require=""/>文字
									</div>
									<div class="radio col-sm-4">
										<input type="radio" name="type" value="1" th:checked="${bContent.type==1}"
											   require=""/>图文
									</div>
									<div class="radio col-sm-4">
										<input type="radio" name="type" value="2" th:checked="${bContent.type==2}"
											   require=""/>视频
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">文章标签：</label>
								<div class="col-sm-8">
									<select data-placeholder="选择标签" class="form-control chosen-select"
											tabindex="2" style="width: 100%" id="tags" name="tags">
										<option value="">选择类型</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">访问路径：</label>
								<div class="col-sm-8">
									<input id="aliasName" class="form-control" name="aliasName" type="text"
										   th:value="${bContent.aliasName}" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">开启评论：</label>
								<div class="switch onoffswitch col-sm-8">
									<div class="onoffswitch">
										<input id="allowComment" name="allowComment" checked="${bContent.allowComment==1}"
											   type="checkbox" value="1" class="onoffswitch-checkbox">
										<label class="onoffswitch-label"
											   for="allowComment">
											<span class="onoffswitch-inner" value="1"></span>
											<span class="onoffswitch-switch" value="0"></span>
										</label>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">开启订阅：</label>
								<div class="switch onoffswitch col-sm-8">
									<div class="onoffswitch">
										<input id="allowPing" name="allowPing" th:checked="${bContent.allowPing==1}"
											   type="checkbox" value="1" class="onoffswitch-checkbox">
										<label class="onoffswitch-label" for="allowPing">
											<span class="onoffswitch-inner"></span>
											<span class="onoffswitch-switch"></span>
										</label>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">发布文章：</label>
								<div class="switch onoffswitch col-sm-8">
									<div class="onoffswitch">
										<input id="status" name="status" type="checkbox"
											   th:checked="${bContent.status==1}"
											   value="1" class="onoffswitch-checkbox">
										<label class="onoffswitch-label" for="status"> <span
												class="onoffswitch-inner"></span> <span
												class="onoffswitch-switch"></span>
										</label>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">是否原创 :</label>
								<div class="switch onoffswitch col-sm-8">
									<div class="onoffswitch">
										<input id="origin" name="origin" type="checkbox"
											   th:checked="${bContent.origin==1}"
											   value="1" class="onoffswitch-checkbox">
										<label class="onoffswitch-label" for="origin"> <span
												class="onoffswitch-inner"></span> <span
												class="onoffswitch-switch"></span>
										</label>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">是否顶置 :</label>
								<div class="switch onoffswitch col-sm-8">
									<div class="onoffswitch">
										<input id="isTop" name="isTop" type="checkbox" th:checked="${bContent.isTop==1}"
											   value="1" class="onoffswitch-checkbox">
										<label class="onoffswitch-label" for="isTop"> <span
												class="onoffswitch-inner"></span> <span
												class="onoffswitch-switch"></span>
										</label>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">是否推荐 :</label>
								<div class="switch onoffswitch col-sm-8">
									<div class="onoffswitch">
										<input id="isRec" name="isRec" type="checkbox" th:checked="${bContent.isRec==1}"
											   value="1" class="onoffswitch-checkbox">
										<label class="onoffswitch-label" for="isRec"> <span
												class="onoffswitch-inner"></span> <span
												class="onoffswitch-switch"></span>
										</label>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">seo key :</label>
								<div class="col-sm-8">
										<textarea type="text" rows="2" class="form-control" name="seoKey"
												  id="seoKey" th:text="${bContent.seoKey}"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-4 control-label">seo desc :</label>
								<div class="col-sm-8">
										<textarea type="text" rows="2" class="form-control" name="seoDesc"
												  id="seoDesc" th:text="${bContent.seoDesc}"></textarea>
								</div>
							</div>
							<div class="text-right form-group">
								<button
										class="btn btn-primary waves-effect waves-light"
										type="submit">保存文章
								</button>
								<a class="btn btn-default waves-effect waves-light"
								   onclick="returnList()">返回列表</a>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/blog/bContent/edit.js"></script>
</body>
</html>
